# Maintainer: Peter Shkenev <santurysim@gmail.com>
pkgname=s6-man-pages
pkgver=2.13.1.0.1
pkgrel=0
pkgdesc="Unofficial mdoc versions of the s6 documentation"
url="https://git.sr.ht/~flexibeast/s6-man-pages"
arch="noarch"
license="ISC"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~flexibeast/s6-man-pages/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # no tests
install_if="${pkgname%-*-*}>=${pkgver%.*} docs"

package() {
	make DESTDIR="$pkgdir" install

	find "$pkgdir" -type f ! -name "*.gz" \
		-exec gzip -9 {} \;
}

sha512sums="
bbdf1fc14bb1332697c6cf24bb39927dd20d2af9c6d1cd4eac98dcf5a421a79b9ed09850a69f675d8232dc84b749d8673fdc737f293dcbdf67364dcf4c561c3f  s6-man-pages-2.13.1.0.1.tar.gz
"
